package com.hqyj.javaSpringCloudWeb.modules.account.service;

import com.hqyj.entity.account.User;
import com.hqyj.entity.common.Result;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    /**
     * 登录
     * @param user
     * @return
     */
    Result<User> login(HttpServletRequest request, User user);

    /**
     * 注册
     * @param user
     * @return
     */
    Result<User> insertUser(HttpServletRequest request, User user);

    /**
     * 注销
     */
    void logout(HttpServletRequest request);

}
